package io.renren.modules.mark.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.renren.modules.mark.form.Location;
import lombok.Data;

/**
 * 
 * 
 * @author 
 * @date
 */
@Data
@TableName("mark_item")
public class MarkItemEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(value = "item_id", type = IdType.INPUT)
	@JsonSerialize(using = ToStringSerializer.class)
	private Long itemId;
	/**
	 * 状态
	 */
	private Integer state;
	/**
	 * 图片url
	 */
	private String url;
	/**
	 * 数据集id
	 */
	private Integer datasetId;
	/**
	 * 创建时间
	 */
	private Date createTime;

	@JsonIgnore
	private Long userId;

	@TableField(exist=false)
	private String userName;

	private String location;

	private Integer teamId;

	private Integer isSave;

	private Date updateTime;

	private Long approveId;

	@TableField(exist = false)
	private List<Location> locations;
}
